import { createRouter, createWebHashHistory } from "vue-router";
export default createRouter({

    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: "/",
            redirect: '/login'
        },
        {
            path: "/login",
            name: "login",
            component: () => import("../views/login.vue")
        }
        ,
        {
            path: "/admin",
            name: "admin",
            component: () => import("../views/admin/index.vue"),
        }
    ]
})